﻿using Anke.SHManage.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Anke.SHManage.Model.BasicEventInfo;

namespace Anke.SHManage.IDAL
{
   public  interface IAcceptEventDAL
    {
       /// <summary>
        /// 受理相关信息
       /// </summary>
       /// <param name="code">事件编码</param>
       /// <param name="orderNum">受理序号</param>
       /// <returns></returns>
       AcceptEventInfo GetAcceptEventInfoByCode(string code, int orderNum);

       /// <summary>
       /// 修改受理信息 2016-10-28
       /// </summary>
       /// <param name="code">事件编码</param>
       /// <returns></returns>
       bool UpdateAccept(string EventCode, string AlarmReason, string PatientName, string Sex, string Age, string National, string Folk,
                string Judge, string LinkMan, string LinkTel, string Extension, string LocalAddr, string WaitAddr, string SendAddr, bool IsNeedLitter);

       string ModifyAccept(AcceptEventInfo info, string operatorCode);
       //受理信息修改痕迹
       List<ModifyRecordInfo> GetAcceptCrackInfos(int pageIndex, int pageSize, ref int rowCount, string EventCode);

        /// <summary>
        /// 获取事件节点(分配tabs使用）
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
       AcceptEventInfo GetEventNode(string code);
       /// <summary>
       /// 事件相关信息
       /// </summary>
       /// <param name="code"></param>
       /// <param name="orderNum"></param>
       /// <returns></returns>
    }
}
